﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Globalization;
using System.Windows;
using System.ComponentModel;

namespace Model.Player
{
    public class Player : INotifyPropertyChanged
    {
        //everything about the players economy

        private double _Cash, _Revenue;
        private List<Archivement> _archivements;

        public Player()
        {
            Cash = 10000; //starts with X gold
            Revenue = 0;
        }

        public double Cash
        {
            get { return _Cash; }
            set
            {
                _Cash = value;
                NotifyPropertyChanged("Cash");
            }
        }

        public double Revenue
        {
            get { return _Revenue; }
            set
            {
                _Revenue = value;
                NotifyPropertyChanged("Revenue");
            }
        }

        public event PropertyChangedEventHandler PropertyChanged;

        private void NotifyPropertyChanged(String info)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(info));
            }
        }
    }
}
